package com.bjpowernode.myaspect;


import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/*
    自定义切面
 */
@Aspect
@Component
public class TestAspect {

    /*
        前置通知
     */
    @Before("execution(* com.bjpowernode.service.impl.UserServiceImpl.addUser())")
    public void before() {
        System.out.println("==========前置通知========");
    }
}
